NSAIDs are often used to treat mild to moderate pain and inflammation in dogs. They work by reducing the production of chemicals in the body that cause pain and inflammation. Some common NSAIDs for dogs include carprofen, meloxicam, and deracoxib.